<?php

    $rootPath = dirname(__FILE__). '/../';
    $rootPath = str_replace('\\', '/', $rootPath);
    $rootPath = preg_replace('|/[^/]+?/\.\./|', '/', $rootPath);
    define("SITE_ROOT",   $rootPath);
    unset( $rootPath );

    define( "UPLOAD_DIR", SITE_ROOT . "\\uploaded\\" );
    define( "TEMPLATES_DIR", SITE_ROOT . "templates/");
    define( "TEMPLATES_C_DIR", SITE_ROOT . "templates_c/");
    define( "MAX_COPY_INDEX", "999" );
    define( "DATABASE_HOST", "localhost" );
    define( "DATABASE_PORT", "3306" );
    define( "DATABASE_USER", "root" );
    define( "DATABASE_PASS", "" );
    define( "DATABASE_NAME", "quizzes" );

?>